/config/system/interface/<intf_name>/ip

The nodes below this one perform the functions described in this function overview.

Set IP address for the interface.

Use

You can configure more than one IP address on an interface. Each virtual IP must also be assigned to an interface or to a [CARP](https://docs.lineratesyst ems.com/093Release_2.5/200CLI_Reference_Guide/Configure_Commands/Interface_Mod e_Commands#carp) group.

When you set the IP address, the system automatically also adds a local route based on the IP address.

An interface can have more than one IP address. Unlike other systems you may work with, F5® LineRate® adds each specified IP address to the interface. Use the no form of the command to remove an IP address.

For a port channel:

  • Any IP address configured on an interface can remain before adding the interface to a port channel, but the IP address is ignored. When you remove the interface from the port channel, the IP address will be active.
  • You can configure IP addresses on a port channel.

Parameters

intf_name: Name of interface

Data Type

subtree

Request Methods

GET

Examples

GET

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/system/interface/em1/ip

GET Response

{"/config/system/interface/em1/ip": {"data": None,
                                      "default": False,
                                      "defaultAllowed": False,
                                      "deleteAllowed": False,
                                      "numChildren": 2,
                                      "type": "subtree"},
 "httpResponseCode": 200,
 "recurse": False,
 "requestPath": "/config/system/interface/em1/ip"}

GET (list children)

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/system/interface/em1/ip?op=list

GET Response

{"/config/system/interface/em1/ip": {"children": {"/config/system/interface/em1/ip/addrMask": {"default": False,
                                                                                                  "defaultAllowed": False,
                                                                                                  "deleteAllowed": False,
                                                                                                  "numChildren": 1,
                                                                                                  "type": "subtree"},
                                                    "/config/system/interface/em1/ip/v6LinkLocal": {"default": False,
                                                                                                     "defaultAllowed": False,
                                                                                                     "deleteAllowed": False,
                                                                                                     "numChildren": 1,
                                                                                                     "type": "ip-addr-with-mask"}},
                                      "default": False,
                                      "defaultAllowed": False,
                                      "deleteAllowed": False,
                                      "numChildren": 2,
                                      "type": "subtree"},
 "httpResponseCode": 200,
 "recurse": False,
 "requestPath": "/config/system/interface/em1/ip"}

GET (recursively list children)

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/system/interfa ce/em1/ip?level=recurse

  1. /config/system/interface/<intf_name>/ip 1. Parameters
    1. Data Type 2. Request Methods 3. Related 4. Examples